package com.sservice.service.service.impl;

import com.sservice.model.dao.PurchaseOrderPaperMapper;
import com.sservice.model.entity.PurchaseOrderPaper;
import com.sservice.service.service.IPurchaseOrderPaperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by suweiming on 2017/12/20.
 */


@Service
public class PurchaseOrderPaperServiceImpl implements IPurchaseOrderPaperService {

    @Autowired
    private PurchaseOrderPaperMapper opDao;


    @Override
    public int deleteByPrimaryKey(Integer id) {
        return opDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PurchaseOrderPaper record) {
        return opDao.insert(record);
    }

    @Override
    public int insertSelective(PurchaseOrderPaper record) {
        return opDao.insertSelective(record);
    }

    @Override
    public PurchaseOrderPaper selectByPrimaryKey(Integer id) {
        return opDao.selectByPrimaryKey(id);
    }

    @Override
    public PurchaseOrderPaper selectByOrderId(String orderId) {
        return opDao.selectByOrderId(orderId);
    }

    @Override
    public int updateByPrimaryKeySelective(PurchaseOrderPaper record) {
        return opDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(PurchaseOrderPaper record) {
        return opDao.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(PurchaseOrderPaper record) {
        return opDao.updateByPrimaryKey(record);
    }
}
